package com.lagou.rabbit.util;

import com.lagou.rabbit.po.Order;

import java.util.HashMap;
import java.util.Map;

/**
 * created by wq at 2020/12/13
 */
public class OrderUtil {

    private static Map<String, Order> orders = new HashMap<String, Order>();

    public static void add(Order order) {
        orders.put(order.getId(), order);
    }

    public static Order get(String id) {
        return orders.get(id);
    }

    public static void remove(String id) {
        orders.remove(id);
    }
}
